package com.tenement.mybatis.entity;

import java.io.Serializable;

public class Reserve implements Serializable {
    private Integer rId;

    private String rOrderid;

    private String rReservedate;

    private String rReservelocation;

    private String rReservestatus;

    private Integer uId;
    
    private Integer uLandlord;

    private Integer hId;

    private static final long serialVersionUID = 1L;

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public String getrOrderid() {
        return rOrderid;
    }

    public void setrOrderid(String rOrderid) {
        this.rOrderid = rOrderid == null ? null : rOrderid.trim();
    }

    public String getrReservedate() {
        return rReservedate;
    }

    public void setrReservedate(String rReservedate) {
        this.rReservedate = rReservedate == null ? null : rReservedate.trim();
    }

    public String getrReservelocation() {
        return rReservelocation;
    }

    public void setrReservelocation(String rReservelocation) {
        this.rReservelocation = rReservelocation == null ? null : rReservelocation.trim();
    }

    public String getrReservestatus() {
        return rReservestatus;
    }

    public void setrReservestatus(String rReservestatus) {
        this.rReservestatus = rReservestatus == null ? null : rReservestatus.trim();
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Reserve other = (Reserve) that;
        return (this.getrId() == null ? other.getrId() == null : this.getrId().equals(other.getrId()))
            && (this.getrOrderid() == null ? other.getrOrderid() == null : this.getrOrderid().equals(other.getrOrderid()))
            && (this.getrReservedate() == null ? other.getrReservedate() == null : this.getrReservedate().equals(other.getrReservedate()))
            && (this.getrReservelocation() == null ? other.getrReservelocation() == null : this.getrReservelocation().equals(other.getrReservelocation()))
            && (this.getrReservestatus() == null ? other.getrReservestatus() == null : this.getrReservestatus().equals(other.getrReservestatus()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.gethId() == null ? other.gethId() == null : this.gethId().equals(other.gethId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getrId() == null) ? 0 : getrId().hashCode());
        result = prime * result + ((getrOrderid() == null) ? 0 : getrOrderid().hashCode());
        result = prime * result + ((getrReservedate() == null) ? 0 : getrReservedate().hashCode());
        result = prime * result + ((getrReservelocation() == null) ? 0 : getrReservelocation().hashCode());
        result = prime * result + ((getrReservestatus() == null) ? 0 : getrReservestatus().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((gethId() == null) ? 0 : gethId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rId=").append(rId);
        sb.append(", rOrderid=").append(rOrderid);
        sb.append(", rReservedate=").append(rReservedate);
        sb.append(", rReservelocation=").append(rReservelocation);
        sb.append(", rReservestatus=").append(rReservestatus);
        sb.append(", uId=").append(uId);
        sb.append(", hId=").append(hId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public Integer getuLandlord() {
		return uLandlord;
	}

	public void setuLandlord(Integer uLandlord) {
		this.uLandlord = uLandlord;
	}
}